package com.mdata.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResponseEnum {

    // 数据操作错误定义
    SUCCESS(200, "操作成功！"),
    NO_AUTH(401,"你能不能先登录一下！"),
    NO_PERMISSION(403,"你没得权限"),
    NOT_FOUND(404, "未找到该资源!"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误！"),

    // 6xx 系统内部错误代码
    INSIDE_WRONG_USER_NAME_AND_PASSWORD(600, "用户名密码错误！"),
    INSIDE_ERROR_SESSION_ARCHIVING_INIT(601, "会话存档加载失败！"),

    // 7xx 企业微信错误相关
    WECHAT_ERROR_ACCESS_TOKEN(700, "access_token错误信息！"),
    WECHAT_ERROR_GET_DEPARTMENT_LIST(701, "获取部门列表错误！"),
    WECHAT_ERROR_CREATE_DEPARTMENT(702, "创建部门错误！"),
    WECHAT_ERROR_UPDATE_DEPARTMENT(703, "修改部门错误！"),
    WECHAT_ERROR_DELETE_DEPARTMENT(704, "删除部门错误！"),
    WECHAT_ERROR_GET_SIMPLE_LIST(705, "获取部门成员错误！"),
    WECHAT_ERROR_USER_DEPARTMENT_UPDATE(706, "修改人员部门错误！"),
    WECHAT_ERROR_GROUP_CHAT_GET(707, "获取客户群详情错误！"),
    WECHAT_ERROR_GROUP_CHAT_GET_LIST(708, "获取客户群列表错误！"),
    WECHAT_ERROR_USER_GET(709, "读取成员错误！"),
    ;

    /** 错误码 */
    private Integer code;

    /** 错误信息 */
    private String msg;
}
